package com.spring.arch.common.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * 共通的运行时异常。
 */
public class AppRuntimeException extends RuntimeException {
    private static final long serialVersionUID = -5416890402903243656L;

    @Getter
    protected HttpStatus status = HttpStatus.BAD_REQUEST; // 400

    public AppRuntimeException(final String message) {
        this(message, null);
    }

    public AppRuntimeException(final String message, final Throwable cause) {
        super(message, cause);
    }
}
